{% extends user.is_superuser|yesno:"admin/bootstraped_base_site.html,registration/normaluser_bootstraped_base_site.html" %}
{% load i18n %}{% load url from future %}

{% if user.is_superuser %}
	{% block breadcrumbs %}
	<ul class="breadcrumb">
	<li><a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> <span class="divider">/</span></li>
	<li>{% trans 'Password reset' %}</a>
	</ul>
	{% endblock %}

	{% block title %}{% trans "Password reset" %}{% endblock %}
{% endif %}

{% block content_title %}
	{% if user.is_superuser %}
		<a class="brand">{% trans 'Password reset' %}</a>
	{% else %}
		{% trans 'Password reset' %}
	{% endif %}
{% endblock %}

{% block content %}

<div class="alert alert-info">{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}</div>

<form class="form" action="" method="post" role="form">{% csrf_token %}
    <div class="form-group">
        <label for="id_email">{% trans 'Email address:' %}</label>
        {{ form.email }}
		{% if form.email.errors %}<span class="help-inline">{{ form.email.errors|striptags }}</span>{% endif %}
    </div>

    <div class="form-group">
        <input type="submit" class="btn btn-primary" value="{% trans 'Reset my password' %}" />
    </div>
</form>
<script>
$('#id_email').addClass('form-control');
</script>
{% endblock %}
